def D(a,b,c):
    return 2*a*b + 2*a*c + 2*b*c
if __name__ =='__main__':
    print(D(1,2,3))